package org.example.springprinciple;

import org.example.springprinciple.scope.Dog;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringPrincipleApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SpringPrincipleApplication.class, args);

        Dog bean = (Dog) context.getBean("dog");
//        System.out.println(bean);
    }

}
